package com.lanchetech.dao;

import com.lanchetech.bean.request.AnnouncementPageReq;import com.lanchetech.entity.Announcement;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface AnnouncementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Announcement record);

    int insertSelective(Announcement record);

    Announcement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Announcement record);

    int updateByPrimaryKey(Announcement record);

    List<Announcement> findAllByIds(@Param("list") List<Long> ids);

    List<Announcement> findAllPage(AnnouncementPageReq req);

    Announcement findLastOneByType(@Param("type") Integer type);

    int updateDeletedById(@Param("updatedDeleted")Byte updatedDeleted,@Param("id")Long id);

    List<Announcement> findAll();
}